﻿namespace Dcms.BLL
{
    using Dcms.IDAL;
    using Dcms.Model;
    using System;
    using System.Data;

    public class Dcms_CandidateRecordBLL
    {
        private IDcms_CandidateRecordDAL Cr = Dcms.DALFactory.DALFactory.CreateDcms_CandidateRecord();

        public Dcms_CandidateRecordModel AddModel(Dcms_CandidateRecordModel model)
        {
            return this.Cr.AddModel(model);
        }

        public bool DeleteAllCheck(string AllID)
        {
            return this.Cr.DeleteAllCheck(AllID);
        }

        public void DeleteModelByID(int ID)
        {
            this.Cr.DeleteModelByID(ID);
        }

        public string GetDataCount(string SqlStr)
        {
            return this.Cr.GetDataCount(SqlStr);
        }

        public DataSet GetDataListByPage(string SqlStr, int CurPage, int PageSize)
        {
            return this.Cr.GetDataListByPage(SqlStr, CurPage, PageSize);
        }

        public Dcms_CandidateRecordModel GetModelByID(int ID)
        {
            return this.Cr.GetModelByID(ID);
        }

        public Dcms_CandidateRecordModel Update(Dcms_CandidateRecordModel model)
        {
            return this.Cr.Update(model);
        }

        public bool UpdateState(string AllID, int StateValue)
        {
            return this.Cr.UpdateState(AllID, StateValue);
        }
    }
}

